#ifndef HOMEPAGE_H
#define HOMEPAGE_H

#include <QDialog>
#include <QCoreApplication>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QDebug>
#include <QString>
#include <QJsonParseError>
#include "datainfo.h"
#include <QPainter>

namespace Ui {
class HomePage;
}

class HomePage : public QDialog
{
    Q_OBJECT

public:
    explicit HomePage(QWidget *parent = 0);
    ~HomePage();
    DataInfo * data;

private:
    Ui::HomePage *ui;
    //QJsonObject inparse(QByteArray);//反序列化
    QJsonObject parse();//序列化
    void paintEvent(QPaintEvent * event);
private slots:
    //void acSwitchSlot(bool checked);
    void keyValueGetSlot(int,QString);
    void dataUpSlot(QByteArray);
    void btnClickButton();
    void comxClickSlot(int);

//signals:
//    void keyValueOut(int,QString);
};

#endif // HOMEPAGE_H
